<?php
namespace app\exam\controller;
use think\facade\Session;
use think\Controller;

class Common extends Controller{
    public function check()
    {
         if(!Session::get('userdata')){
           return 0;
         }else{
           return Session::get('userdata');
         }
    }




 
}




?>